300 |
Can I add any break or divider line
public void init() { COM com_Items; anytype var_Items; int h; ; super(); exlist1.ScrollBySingleLine(false); exlist1.Columns().Add("Default"); var_Items = exlist1.Items(); com_Items = var_Items; com_Items.Add("Item 1"); h = com_Items.Add(); com_Items.ItemBreak(h,1/*SingleLine*/); com_Items.SelectableItem(h,false); com_Items.ItemHeight(h,6); com_Items.Add("Item 3"); } |
299 |
Can I change the default border of the tooltip, using your EBN files
public void init() { ; super(); exlist1.ToolTipDelay(1); exlist1.ToolTipWidth(364); exlist1.VisualAppearance().Add(1,"c:\\exontrol\\images\\normal.ebn"); exlist1.Background(64/*exToolTipAppearance*/,0x1000000); COM::createFromVariant(exlist1.Columns().Add("tootip")).ToolTip("this is a tooltip assigned to a column"); } |
298 |
Can I change the background color for the tooltip
public void init() { ; super(); exlist1.ToolTipDelay(1); exlist1.ToolTipWidth(364); exlist1.Background(65/*exToolTipBackColor*/,WinApi::RGB2int(255,0,0)); COM::createFromVariant(exlist1.Columns().Add("tootip")).ToolTip("this is a tooltip assigned to a column"); } |
297 |
Does the tooltip support HTML format
|
296 |
Can I change the forecolor for the tooltip
public void init() { ; super(); exlist1.ToolTipDelay(1); exlist1.ToolTipWidth(364); exlist1.Background(66/*exToolTipForeColor*/,WinApi::RGB2int(255,0,0)); COM::createFromVariant(exlist1.Columns().Add("tootip")).ToolTip("this is a tooltip assigned to a column"); } |
295 |
Can I change the foreground color for the tooltip
|
294 |
Is there any function to limit the height of the items when I display it using multiple lines
|
293 |
Why I cannot center my cells in the column
public void init() { ; super(); exlist1.DrawGridLines(-1/*exAllLines*/); COM::createFromVariant(exlist1.Columns().Add("Default")).Alignment(1/*CenterAlignment*/); exlist1.Items().Add("item 1"); exlist1.Items().Add("item 2"); exlist1.Items().Add("item 3"); } |
292 |
How can I align the cell to the left, center or to the right
public void init() { COM com_Items; anytype var_Items; ; super(); exlist1.DrawGridLines(-1/*exAllLines*/); exlist1.Columns().Add("Default"); var_Items = exlist1.Items(); com_Items = var_Items; com_Items.CellHAlignment(com_Items.Add("left"),COMVariant::createFromInt(0),0/*LeftAlignment*/); com_Items.CellHAlignment(com_Items.Add("center"),COMVariant::createFromInt(0),1/*CenterAlignment*/); com_Items.CellHAlignment(com_Items.Add("right"),COMVariant::createFromInt(0),2/*RightAlignment*/); } |
291 |
How do I apply HTML format to a cell
public void init() { COM com_Items; anytype var_Items; int h; str var_s,var_s1; ; super(); var_s = "gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTql"; var_s = var_s + "Vq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m0"; var_s = var_s + "ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/yN"; var_s = var_s + "AOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA="; exlist1.Images(COMVariant::createFromStr(var_s)); exlist1.HTMLPicture("p1","c:\\exontrol\\images\\zipdisk.gif"); exlist1.HTMLPicture("p2","c:\\exontrol\\images\\auction.gif"); exlist1.Columns().Add("Default"); var_Items = exlist1.Items(); com_Items = var_Items; h = com_Items.Add("The following item shows some of the HTML format supported:"); com_Items.CellHAlignment(h,COMVariant::createFromInt(0),1/*CenterAlignment*/); var_s1 = "<br>text icons <img>1</img>, <img>2</img>, ... pictures <img>p1</img>, <img>p2</img> <br><br>text <b>bold</b>, <i>italic</i>, <u"; var_s1 = var_s1 + ">underline</u>, <s>strikeout</s>, ...<br><dotline>and so on...<br> <a>anchor</a> or <a2>hyperlink</a><br><fgcolor=FF0000>fgcolor"; var_s1 = var_s1 + "</fgcolor> or <bgcolor=00FF00>bgcolor</bgcolor> "; h = com_Items.Add(COMVariant::createFromStr(var_s1)); com_Items.CaptionFormat(h,COMVariant::createFromInt(0),1/*exHTML*/); com_Items.CellSingleLine(h,COMVariant::createFromInt(0),false); } |
290 |
How can I change the font for a cell
|
289 |
How can I change the font for a cell
|
288 |
How can I change the font for entire item
|
287 |
How do I vertically align a cell
public void init() { COM com_Items; anytype var_Items; int h; ; super(); exlist1.DrawGridLines(-1/*exAllLines*/); COM::createFromVariant(exlist1.Columns().Add("MultipleLine")).Def(16/*exCellSingleLine*/,COMVariant::createFromBoolean(false)); exlist1.Columns().Add("VAlign"); var_Items = exlist1.Items(); com_Items = var_Items; h = com_Items.Add("This is a bit of long text that should break the line"); com_Items.Caption(h,COMVariant::createFromInt(1),"top"); com_Items.CellVAlignment(h,COMVariant::createFromInt(1),0/*TopAlignment*/); h = com_Items.Add("This is a bit of long text that should break the line"); com_Items.Caption(h,COMVariant::createFromInt(1),"middle"); com_Items.CellVAlignment(h,COMVariant::createFromInt(1),1/*MiddleAlignment*/); h = com_Items.Add("This is a bit of long text that should break the line"); com_Items.Caption(h,COMVariant::createFromInt(1),"bottom"); com_Items.CellVAlignment(h,COMVariant::createFromInt(1),2/*BottomAlignment*/); } |
286 |
How can I change the position of an item
|
285 |
How do I find an item
|
284 |
How can I insert a hyperlink or an anchor element
public void init() { COM com_Items,com_Items1; anytype var_Items,var_Items1; ; super(); exlist1.Columns().Add("Column"); var_Items = exlist1.Items(); com_Items = var_Items; com_Items.CaptionFormat(com_Items.Add("Just an <a1>anchor</a> element ..."),COMVariant::createFromInt(0),1/*exHTML*/); var_Items1 = exlist1.Items(); com_Items1 = var_Items1; com_Items1.CaptionFormat(com_Items1.Add("Just another <a2>anchor</a> element ..."),COMVariant::createFromInt(0),1/*exHTML*/); } |
283 |
How do I find the handle of the item based on its index
public void init() { COM com_Items; anytype var_Items; int h; ; super(); exlist1.Columns().Add("Default"); var_Items = exlist1.Items(); com_Items = var_Items; h = com_Items.Add("Item 1"); com_Items.Add("Item 2"); com_Items.Add("Item 3"); com_Items.ItemBold(1,true); } |
282 |
How can I find the cell being clicked in a radio group
|
281 |
Can I let the user to resize at runtime the specified item
public void init() { COM com_Items; anytype var_Items; ; super(); exlist1.ScrollBySingleLine(true); exlist1.DrawGridLines(-1/*exAllLines*/); exlist1.Columns().Add("Default"); var_Items = exlist1.Items(); com_Items = var_Items; com_Items.ItemAllowSizing(com_Items.Add("resizable item"),true); com_Items.Add("not resizable item"); } |
280 |
How can I change the size ( width, height ) of the picture
public void init() { COM com_Items; anytype var_Items; int h; ; super(); exlist1.Columns().Add("Default"); var_Items = exlist1.Items(); com_Items = var_Items; h = com_Items.Add("Item 1"); com_Items.CellPicture(h,COMVariant::createFromInt(0),COM::createFromVariant(exlist1.ExecuteTemplate("loadpicture(`c:\\exontrol\\images\\zipdisk.gif`)"))); com_Items.CellPictureWidth(h,COMVariant::createFromInt(0),24); com_Items.CellPictureHeight(h,COMVariant::createFromInt(0),24); com_Items.ItemHeight(h,32); h = com_Items.Add("Item 2"); com_Items.CellPicture(h,COMVariant::createFromInt(0),COM::createFromVariant(exlist1.ExecuteTemplate("loadpicture(`c:\\exontrol\\images\\zipdisk.gif`)"))); com_Items.ItemHeight(h,48); } |
279 |
How can I find the number or the count of selected items
|
278 |
How do I unselect an item
|
277 |
How do I find the selected item
|
276 |
How do I un select all items
public void init() { COM com_Items; anytype var_Items; ; super(); exlist1.SingleSel(false); exlist1.Columns().Add("Default"); var_Items = exlist1.Items(); com_Items = var_Items; com_Items.Add("Item 1"); com_Items.Add("Item 2"); com_Items.Add("Item 3"); com_Items.UnselectAll(); } |
275 |
How do I select multiple items
public void init() { COM com_Items; anytype var_Items; ; super(); exlist1.SingleSel(false); exlist1.Columns().Add("Default"); var_Items = exlist1.Items(); com_Items = var_Items; com_Items.Add("Item 1"); com_Items.Add("Item 2"); com_Items.Add("Item 3"); com_Items.SelectItem(com_Items.FirstVisibleItem(),true); com_Items.SelectItem(com_Items.NextVisibleItem(com_Items.FirstVisibleItem()),true); } |
274 |
How do I select all items
public void init() { COM com_Items; anytype var_Items; ; super(); exlist1.SingleSel(false); exlist1.Columns().Add("Default"); var_Items = exlist1.Items(); com_Items = var_Items; com_Items.Add("Item 1"); com_Items.Add("Item 2"); com_Items.Add("Item 3"); com_Items.SelectAll(); } |
273 |
How do I select an item
|
272 |
Can I display a button with some picture or icon inside
public void init() { COM com_Items; anytype var_Items; int h; ; super(); exlist1.HTMLPicture("p1","c:\\exontrol\\images\\zipdisk.gif"); exlist1.Columns().Add("C1"); exlist1.Columns().Add("C2"); var_Items = exlist1.Items(); com_Items = var_Items; h = com_Items.Add("Cell 1"); com_Items.Caption(h,COMVariant::createFromInt(1)," Button <img>p1</img> "); com_Items.CaptionFormat(h,COMVariant::createFromInt(1),1/*exHTML*/); com_Items.CellHAlignment(h,COMVariant::createFromInt(1),2/*RightAlignment*/); com_Items.CellHasButton(h,COMVariant::createFromInt(1),true); com_Items.ItemHeight(h,48); } |
271 |
Can I display a button with some picture or icon inside
public void init() { COM com_Items; anytype var_Items; int h; str var_s; ; super(); var_s = "gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTql"; var_s = var_s + "Vq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m0"; var_s = var_s + "ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/yN"; var_s = var_s + "AOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA="; exlist1.Images(COMVariant::createFromStr(var_s)); exlist1.Columns().Add("C1"); exlist1.Columns().Add("C2"); var_Items = exlist1.Items(); com_Items = var_Items; h = com_Items.Add("Cell 1"); com_Items.Caption(h,COMVariant::createFromInt(1)," Button <img>1</img> "); com_Items.CaptionFormat(h,COMVariant::createFromInt(1),1/*exHTML*/); com_Items.CellHAlignment(h,COMVariant::createFromInt(1),2/*RightAlignment*/); com_Items.CellHasButton(h,COMVariant::createFromInt(1),true); } |
270 |
Can I display a button with some icon inside
public void init() { COM com_Items; anytype var_Items; int h; str var_s; ; super(); var_s = "gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTql"; var_s = var_s + "Vq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m0"; var_s = var_s + "ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/yN"; var_s = var_s + "AOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA="; exlist1.Images(COMVariant::createFromStr(var_s)); exlist1.Columns().Add("C1"); exlist1.Columns().Add("C2"); var_Items = exlist1.Items(); com_Items = var_Items; h = com_Items.Add("Cell 1"); com_Items.Caption(h,COMVariant::createFromInt(1)," <img>1</img> "); com_Items.CaptionFormat(h,COMVariant::createFromInt(1),1/*exHTML*/); com_Items.CellHAlignment(h,COMVariant::createFromInt(1),2/*RightAlignment*/); com_Items.CellHasButton(h,COMVariant::createFromInt(1),true); } |
269 |
How can I assign multiple icon/picture to a cell
public void init() { COM com_Items; anytype var_Items; int h; ; super(); exlist1.HTMLPicture("p1","c:\\exontrol\\images\\zipdisk.gif"); exlist1.HTMLPicture("p2","c:\\exontrol\\images\\auction.gif"); exlist1.Columns().Add("Default"); var_Items = exlist1.Items(); com_Items = var_Items; h = com_Items.Add("text <img>p1</img> another picture <img>p2</img> and so on"); com_Items.CaptionFormat(h,COMVariant::createFromInt(0),1/*exHTML*/); com_Items.CellPicture(h,COMVariant::createFromInt(0),COM::createFromVariant(exlist1.ExecuteTemplate("loadpicture(`c:\\exontrol\\images\\colorize.gif`)"))); com_Items.ItemHeight(h,48); com_Items.Add("Item 2"); } |
268 |
How can I assign an icon/picture to a cell
|
267 |
How can I assign multiple icons/pictures to a cell
public void init() { COM com_Items; anytype var_Items; int h; str var_s; ; super(); var_s = "gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTql"; var_s = var_s + "Vq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m0"; var_s = var_s + "ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/yN"; var_s = var_s + "AOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA="; exlist1.Images(COMVariant::createFromStr(var_s)); exlist1.Columns().Add("Default"); var_Items = exlist1.Items(); com_Items = var_Items; h = com_Items.Add("Item <img>1</img> 1, <img>2</img>, ... and so on "); com_Items.CaptionFormat(h,COMVariant::createFromInt(0),1/*exHTML*/); } |
266 |
How can I assign multiple icons/pictures to a cell
public void init() { COM com_Items; anytype var_Items; int h; str var_s; ; super(); var_s = "gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTql"; var_s = var_s + "Vq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m0"; var_s = var_s + "ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/yN"; var_s = var_s + "AOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA="; exlist1.Images(COMVariant::createFromStr(var_s)); exlist1.Columns().Add("Default"); var_Items = exlist1.Items(); com_Items = var_Items; h = com_Items.Add("Item 1"); com_Items.CellImages(h,COMVariant::createFromInt(0),"1,2,3"); } |
265 |
How can I assign an icon/picture to a cell
public void init() { COM com_Items; anytype var_Items; int h; str var_s; ; super(); var_s = "gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTql"; var_s = var_s + "Vq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m0"; var_s = var_s + "ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/yN"; var_s = var_s + "AOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA="; exlist1.Images(COMVariant::createFromStr(var_s)); exlist1.Columns().Add("Default"); var_Items = exlist1.Items(); com_Items = var_Items; h = com_Items.Add("Item 1"); com_Items.CellImage(h,COMVariant::createFromInt(0),1); com_Items.CellImage(com_Items.Add("Item 2"),COMVariant::createFromInt(0),2); com_Items.CellImage(com_Items.Add("Item 3"),COMVariant::createFromInt(0),3); } |
264 |
How can I display a button inside the item or cell
public void init() { COM com_Items; anytype var_Items; int h; ; super(); exlist1.Columns().Add("C1"); exlist1.Columns().Add("C2"); var_Items = exlist1.Items(); com_Items = var_Items; h = com_Items.Add("Cell 1"); com_Items.Caption(h,COMVariant::createFromInt(1)," Button 1 "); com_Items.CellHAlignment(h,COMVariant::createFromInt(1),2/*RightAlignment*/); com_Items.CellHasButton(h,COMVariant::createFromInt(1),true); h = com_Items.Add("Cell 2"); com_Items.Caption(h,COMVariant::createFromInt(1)," Button 2 "); com_Items.CellHAlignment(h,COMVariant::createFromInt(1),1/*CenterAlignment*/); com_Items.CellHasButton(h,COMVariant::createFromInt(1),true); } |
263 |
How can I change the state of a radio button
|
262 |
How can I assign a radio button to a cell
public void init() { COM com_Items; anytype var_Items; int h; ; super(); exlist1.MarkSearchColumn(false); exlist1.SelBackColor(WinApi::RGB2int(255,255,128)); exlist1.SelForeColor(WinApi::RGB2int(0,0,0)); exlist1.Columns().Add("C1"); exlist1.Columns().Add("C2"); exlist1.Columns().Add("C3"); var_Items = exlist1.Items(); com_Items = var_Items; h = com_Items.Add("Cell 1"); com_Items.Caption(h,COMVariant::createFromInt(1),"Radio 1"); com_Items.CellHasRadioButton(h,COMVariant::createFromInt(1),true); com_Items.CellRadioGroup(h,COMVariant::createFromInt(1),1234); com_Items.Caption(h,COMVariant::createFromInt(2),"Radio 2"); com_Items.CellHasRadioButton(h,COMVariant::createFromInt(2),true); com_Items.CellRadioGroup(h,COMVariant::createFromInt(2),1234); com_Items.CellState(h,COMVariant::createFromInt(1),1); } |
261 |
How can I change the state of a checkbox
|
260 |
How can I assign a checkbox to a cell
|
259 |
How can I display an item or a cell on multiple lines
public void init() { COM com_Items; anytype var_Items; int h; ; super(); exlist1.ScrollBySingleLine(true); exlist1.Columns().Add("C1"); exlist1.Columns().Add("C2"); var_Items = exlist1.Items(); com_Items = var_Items; h = com_Items.Add("Cell 1"); com_Items.Caption(h,COMVariant::createFromInt(1),"This is bit of text that's shown on multiple lines"); com_Items.CellSingleLine(h,COMVariant::createFromInt(1),false); } |
258 |
How can I assign a tooltip to a cell
|
257 |
How can I associate an extra data to a cell
|
256 |
How do I enable or disable a cell
|
255 |
How do I change the cell's foreground color
|
254 |
How do I change the visual effect for the cell, using your EBN files
|
253 |
How do I change the cell's background color
|
252 |
How do I change the caption or value for a particular cell
|
251 |
How do I retrieve the focused item
|
250 |
How do I enumerate the visible items
public void init() { COM com_Items; anytype var_Items; int h; ; super(); exlist1.Columns().Add("Default"); var_Items = exlist1.Items(); com_Items = var_Items; h = com_Items.Add("Item 1"); h = com_Items.Add("Item 2"); com_Items.ItemBold(com_Items.FirstVisibleItem(),true); com_Items.ItemBold(com_Items.NextVisibleItem(com_Items.FirstVisibleItem()),true); } |
249 |
How can I make an item unselectable, or not selectable
|
248 |
How can I hide or show an item
public void init() { COM com_Items; anytype var_Items; int h; ; super(); exlist1.Columns().Add("Column"); var_Items = exlist1.Items(); com_Items = var_Items; h = com_Items.Add("hidden"); com_Items.ItemHeight(h,0); com_Items.SelectableItem(h,false); com_Items.Add("visible"); } |
247 |
How can I change the height for all items
|
246 |
How do I change the height of an item
public void init() { COM com_Items; anytype var_Items; ; super(); exlist1.ScrollBySingleLine(true); exlist1.Columns().Add("Default"); var_Items = exlist1.Items(); com_Items = var_Items; com_Items.ItemHeight(com_Items.Add("height"),128); exlist1.Items().Add("enabled"); } |
245 |
How do I disable or enable an item
|
244 |
How do I display as strikeout a cell
public void init() { COM com_Items; anytype var_Items; ; super(); exlist1.Columns().Add("Default"); var_Items = exlist1.Items(); com_Items = var_Items; com_Items.CellStrikeOut(com_Items.Add("strikeout"),COMVariant::createFromInt(0),true); } |
243 |
How do I display as strikeout a cell or an item
|
242 |
How do I display as strikeout an item
public void init() { COM com_Items; anytype var_Items; ; super(); exlist1.Columns().Add("Default"); var_Items = exlist1.Items(); com_Items = var_Items; com_Items.ItemStrikeOut(com_Items.Add("strikeout"),true); } |
241 |
How do I underline a cell
|
240 |
How do I underline a cell or an item
|
239 |
How do I underline an item
|
238 |
How do I display as italic a cell
|
237 |
How do I display as italic a cell or an item
|
236 |
How do I display as italic an item
|
235 |
How do I bold a cell
|
234 |
How do I bold a cell or an item
|
233 |
How do I bold an item
|
232 |
How do I change the foreground color for the item
|
231 |
How do I change the visual appearance for the item, using your EBN technology
public void init() { COM com_Items; anytype var_Items; ; super(); exlist1.VisualAppearance().Add(1,"c:\\exontrol\\images\\normal.ebn"); exlist1.Columns().Add("Default"); var_Items = exlist1.Items(); com_Items = var_Items; com_Items.ItemBackColor(com_Items.Add("Item"),0x1000000); } |
230 |
How do I change the background color for the item
|
229 |
How do I associate an extra data to an item
|
228 |
How do I programmatically edit a cell
// AfterCellEdit event - Occurs after data in the current cell is edited. void onEvent_AfterCellEdit(int _ItemIndex,int _ColIndex,str _NewCaption) { COM com_Items; anytype var_Items; ; var_Items = exlist1.Items(); com_Items = var_Items; com_Items.Caption(_ItemIndex,_ColIndex,_NewCaption); } // CancelCellEdit event - Occurs if the edit operation is canceled. void onEvent_CancelCellEdit(int _ItemIndex,int _ColIndex,COMVariant _Reserved) { COM com_Items; anytype var_Items; ; var_Items = exlist1.Items(); com_Items = var_Items; com_Items.Caption(_ItemIndex,_ColIndex,_Reserved); } // Click event - Occurs when the user presses and then releases the left mouse button over the list control. void onEvent_Click() { COM com_Items; anytype var_Items; ; var_Items = exlist1.Items(); com_Items = var_Items; com_Items.Edit(com_Items.FocusItem(),COMVariant::createFromInt(0)); } public void init() { COM com_Items; anytype var_Items; ; super(); exlist1.AllowEdit(true); exlist1.Columns().Add("Default"); var_Items = exlist1.Items(); com_Items = var_Items; com_Items.Add(""); } |
227 |
How can I ensure or scroll the control so the item fits the control's client area
|
226 |
How can I remove or delete all items
|
225 |
How can I remove or delete an item
|
224 |
How can I add or insert an item
public void init() { COM com_Items; anytype var_Items; int h; ; super(); exlist1.Columns().Add("C1"); exlist1.Columns().Add("C2"); var_Items = exlist1.Items(); com_Items = var_Items; com_Items.Caption(com_Items.Add("Cell 1"),COMVariant::createFromInt(1),"Cell 2"); h = com_Items.Add("Cell 3"); com_Items.Caption(h,COMVariant::createFromInt(1),"Cell 4"); } |
223 |
How can I add or insert an item
public void init() { ; super(); exlist1.Columns().Add("Default"); exlist1.Items().Add("new item"); } |
222 |
How can I get the columns as they are shown in the control's sortbar
|
221 |
How can I access the properties of a column
|
220 |
How can I remove all the columns
|
219 |
How can I remove a column
|
218 |
How can I get the number or the count of columns
|
217 |
How can I change the font for all cells in the entire column
public void init() { COM com_ConditionalFormat,com_f; anytype f,var_ConditionalFormat; ; super(); f = COM::createFromObject(new stdole.StdFont()); com_f = f; f.Name("Tahoma"); f.Size(12); var_ConditionalFormat = COM::createFromObject(exlist1.ConditionalFormats()).Add("1"); com_ConditionalFormat = var_ConditionalFormat; com_ConditionalFormat.Font(f); com_ConditionalFormat.ApplyTo(0/*exFormatToColumns*/); exlist1.Columns().Add("Column"); exlist1.Items().Add(COMVariant::createFromInt(0)); exlist1.Items().Add(COMVariant::createFromInt(1)); } |
216 |
How can I change the background color for all cells in the column
public void init() { COM com_ConditionalFormat; anytype var_ConditionalFormat; ; super(); var_ConditionalFormat = COM::createFromObject(exlist1.ConditionalFormats()).Add("1"); com_ConditionalFormat = var_ConditionalFormat; com_ConditionalFormat.BackColor(WinApi::RGB2int(255,0,0)); com_ConditionalFormat.ApplyTo(0/*exFormatToColumns*/); exlist1.Columns().Add("Column"); exlist1.Items().Add(COMVariant::createFromInt(0)); exlist1.Items().Add(COMVariant::createFromInt(1)); } |
215 |
How can I change the foreground color for all cells in the column
public void init() { COM com_ConditionalFormat; anytype var_ConditionalFormat; ; super(); var_ConditionalFormat = COM::createFromObject(exlist1.ConditionalFormats()).Add("1"); com_ConditionalFormat = var_ConditionalFormat; com_ConditionalFormat.ForeColor(WinApi::RGB2int(255,0,0)); com_ConditionalFormat.ApplyTo(0/*exFormatToColumns*/); exlist1.Columns().Add("Column"); exlist1.Items().Add(COMVariant::createFromInt(0)); exlist1.Items().Add(COMVariant::createFromInt(1)); } |
214 |
How can I show as strikeout all cells in the column
|
213 |
How can I underline all cells in the column
public void init() { COM com_ConditionalFormat; anytype var_ConditionalFormat; ; super(); var_ConditionalFormat = COM::createFromObject(exlist1.ConditionalFormats()).Add("1"); com_ConditionalFormat = var_ConditionalFormat; com_ConditionalFormat.Underline(true); com_ConditionalFormat.ApplyTo(0/*exFormatToColumns*/); exlist1.Columns().Add("Column"); exlist1.Items().Add(COMVariant::createFromInt(0)); exlist1.Items().Add(COMVariant::createFromInt(1)); } |
212 |
How can I show in italic all data in the column
public void init() { COM com_ConditionalFormat; anytype var_ConditionalFormat; ; super(); var_ConditionalFormat = COM::createFromObject(exlist1.ConditionalFormats()).Add("1"); com_ConditionalFormat = var_ConditionalFormat; com_ConditionalFormat.Italic(true); com_ConditionalFormat.ApplyTo(0/*exFormatToColumns*/); exlist1.Columns().Add("Column"); exlist1.Items().Add(COMVariant::createFromInt(0)); exlist1.Items().Add(COMVariant::createFromInt(1)); } |
211 |
How can I bold the entire column
public void init() { COM com_ConditionalFormat; anytype var_ConditionalFormat; ; super(); var_ConditionalFormat = COM::createFromObject(exlist1.ConditionalFormats()).Add("1"); com_ConditionalFormat = var_ConditionalFormat; com_ConditionalFormat.Bold(true); com_ConditionalFormat.ApplyTo(0/*exFormatToColumns*/); exlist1.Columns().Add("Column"); exlist1.Items().Add(COMVariant::createFromInt(0)); exlist1.Items().Add(COMVariant::createFromInt(1)); } |
210 |
How can I display a computed column and highlight some values that are negative or less than a value
public void init() { COM com_ConditionalFormat,com_Items,com_Items1; anytype var_ConditionalFormat,var_Items,var_Items1; ; super(); exlist1.Columns().Add("A"); exlist1.Columns().Add("B"); COM::createFromVariant(exlist1.Columns().Add("(A+B)*1.19")).ComputedField("(%0 + %1) * 1.19"); var_Items = exlist1.Items(); com_Items = var_Items; com_Items.Caption(com_Items.Add(COMVariant::createFromInt(1)),COMVariant::createFromInt(1),COMVariant::createFromInt(2)); var_Items1 = exlist1.Items(); com_Items1 = var_Items1; com_Items1.Caption(com_Items1.Add(COMVariant::createFromInt(10)),COMVariant::createFromInt(1),COMVariant::createFromInt(20)); var_ConditionalFormat = COM::createFromObject(exlist1.ConditionalFormats()).Add("%2 > 10"); com_ConditionalFormat = var_ConditionalFormat; com_ConditionalFormat.Bold(true); com_ConditionalFormat.ForeColor(WinApi::RGB2int(255,0,0)); com_ConditionalFormat.ApplyTo(2); } |
209 |
Can I display a computed column so it displays the VAT, or SUM
|
208 |
How can I show a column that adds values in the cells
|
207 |
Is there any function to filter the control's data as I type, so the items being displayed include the typed characters
public void init() { COM com_Column; anytype var_Column; ; super(); var_Column = COM::createFromVariant(exlist1.Columns().Add("Filter")); com_Column = var_Column; com_Column.FilterOnType(true); com_Column.DisplayFilterButton(true); com_Column.AutoSearch(1/*exContains*/); exlist1.Items().Add("Canada"); exlist1.Items().Add("USA"); } |
206 |
Is there any function to filter the control's data as I type, something like filter on type
|
205 |
How can I programmatically filter a column
public void init() { COM com_Column; anytype var_Column; ; super(); var_Column = COM::createFromVariant(exlist1.Columns().Add("Filter")); com_Column = var_Column; com_Column.DisplayFilterButton(true); com_Column.FilterType(2/*exNonBlanks*/); exlist1.Items().Add(); exlist1.Items().Add("not empty"); exlist1.ApplyFilter(); } |
204 |
How can I show or display the control's filter
|
203 |
How can I customize the items being displayed in the drop down filter window
public void init() { COM com_Column; anytype var_Column; str var_s; ; super(); var_Column = COM::createFromVariant(exlist1.Columns().Add("Custom Filter")); com_Column = var_Column; com_Column.DisplayFilterButton(true); com_Column.DisplayFilterPattern(false); var_s = "Excel Spreadsheets (*.xls )||*.xls|||Word Documents||*.doc|||Powerpoint Presentations||*.pps|||Text Documents (*.log,*.txt)||*.t"; var_s = var_s + "xt|*.log"; com_Column.CustomFilter(var_s); com_Column.FilterType(3/*exPattern*/); com_Column.Filter("*.xls"); exlist1.Items().Add("excel.xls"); exlist1.Items().Add("word.doc"); exlist1.Items().Add("pp.pps"); exlist1.Items().Add("text.txt"); exlist1.ApplyFilter(); } |
202 |
How can I change the order or the position of the columns in the sort bar
public void init() { COM com_Column; anytype var_Column; ; super(); exlist1.SortBarVisible(true); exlist1.SortBarColumnWidth(48); COM::createFromVariant(exlist1.Columns().Add("C1")).SortOrder(1/*SortAscending*/); COM::createFromVariant(exlist1.Columns().Add("C2")).SortOrder(2/*SortDescending*/); var_Column = COM::createFromObject(exlist1.Columns()).Item("C2"); com_Column = var_Column; com_Column.SortPosition(0); } |
201 |
How do I arrange my columns on multiple levels
public void init() { ; super(); COM::createFromVariant(exlist1.Columns().Add("S")).Width(32); COM::createFromVariant(exlist1.Columns().Add("Level 2")).LevelKey(COMVariant::createFromInt(1)); COM::createFromVariant(exlist1.Columns().Add("Level 3")).LevelKey(COMVariant::createFromInt(1)); COM::createFromVariant(exlist1.Columns().Add("Level 4")).LevelKey(COMVariant::createFromInt(1)); COM::createFromVariant(exlist1.Columns().Add("Level 1")).LevelKey("2"); COM::createFromVariant(exlist1.Columns().Add("Level 2")).LevelKey("2"); COM::createFromVariant(exlist1.Columns().Add("Level 3")).LevelKey("2"); COM::createFromVariant(exlist1.Columns().Add("Level 4")).LevelKey("2"); COM::createFromVariant(exlist1.Columns().Add("E")).Width(32); } |